<?php 
class View{
	 private $_assignList = array() ;

	 function display($file = ''){
	 	if(empty($file)){
	 		$file = ACTION_NAME . __EXT__ ; 
	 	}else {
	 		$file = $file . __EXT__; 
	 	}

	 	$file_path = VIEW_PATH  . $file ;   

	 	

	 	ob_start();
		ob_implicit_flush(0);
		include $file_path;
		$content = ob_get_clean();
		$content = preg_replace(array('/\{\$(\w+)\}/','/{:(\w+)(\([\S+\,?]*\))}/'),array('<?php echo \$\1;?>','<?php \1\2;?>'),$content);
		echo $content;

	 }
	 function assign($name,$var){
	 	
	 }
	 function explainHtml(){

	 }
}